package com.powernode.teatraceability.dao.circulationprocessmgt;

import com.powernode.teatraceability.pojo.circulationprocessmgt.TransactionInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface TransactionInfoMapper {

    List<TransactionInfo> selectLike(@Param("qydm") String qydm,@Param("name") String name);

    List<TransactionInfo> selectAll(String qydm);

    int update(TransactionInfo transactionInfo);

    int insert(TransactionInfo transactionInfo);

    int delete(int id);

    @Select("select count(*) from t_transaction where qydm = #{qydm}")
    Integer countInfo(String qydm);
}
